<?php
include('../../../config.php');
include('../../../includes/connect.php');
if($_GET['keywordcate_id']!='')
{
$sql="SELECT * FROM tbl_categorys_class WHERE cate_id='".$_GET['keywordcate_id']."'";
$res=mysql_query($sql);

?>
<p>
	<label for="class_name">Danh mục cấp 2</label>
    <select name="class_name" id="class_name" style="width:405px;">
        
        <?php
			while($row=mysql_fetch_array($res))
			{
				?>
					<option value="<?php echo $row['class_id'];?>"><?php echo $row['class_name']?></option>
				<?php
			}
		?>
    </select>
</p>
<?php
}else{
	?>
        <p>
            <label for="class_name">Danh mục cấp 2</label>
            <select name="class_name" id="class_name" style="width:405px;">
                <option value="">--Chọn danh mục cấp 2--</option>
            </select>
        </p>
	<?php
	}
?>